package hshs.process;

import hsh.setintructions.Instruction;

import java.util.ArrayList;
import java.util.List;

public class Program {

	private List<Instruction> program;
	
	
	public Program(List<Instruction> program) {
		this.program = program;
	}


	public Instruction getInstruction(int pointer){
		return program.get(pointer);
	}


	public int length() {
		
		return this.program.size();
	}
}
